#include "debug_delete.h"
#include "ui_debug_delete.h"
#include "bookstore.h"
#include "studentstore.h"

using namespace bookstore;
using namespace studentstore;

debug_delete::debug_delete(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::debug_delete) {
    ui->setupUi(this);
}

debug_delete::~debug_delete() {
    delete ui;
}

void debug_delete::on_pushButton_clicked() {

    QString str = ui->lineEdit->text();
    int book_id = str.toInt();

    deleteBook(book_id);
}

void debug_delete::on_pushButton_2_clicked() {

    QString str = ui->lineEdit->text();
    int menu_id = str.toInt();

    deleteMenu(menu_id);
}


void debug_delete::on_pushButton_3_clicked() {

    QString str = ui->lineEdit->text();
    int user_id = str.toInt();

    deleteStudent(user_id);

}
